home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Communications / pcomm / Source / matches.out < prev    next >
Encoding:
Text File  |  1995-06-12  |  806 b   |  67 lines

  1.  
  2.  
  3.  
  4.      MATCHES(1)           UNIX    System V (local)        MATCHES(1)
  5.  
  6.  
  7.  
  8.      NAME
  9.       matches - test if string2 is contained in string1
  10.  
  11.      SYNOPSIS
  12.       matches string1 string2
  13.  
  14.      DESCRIPTION
  15.       Matches returns a 0 if string2 is contained in string1,
  16.       otherwise it returns a 1.
  17.  
  18.       Matches is designed to be used by Pcomm in a shell script
  19.       for automatically logging a user onto    a remote system.
  20.  
  21.      EXAMPLE
  22.            # read some input
  23.            read junk
  24.            # test to see the string    matches    'login failed'
  25.            matches $junk 'login failed'
  26.            # test the exit code of the matches command
  27.            if [ $? -eq 0 ]
  28.            then
  29.              exit 1
  30.            fi
  31.  
  32.      SEE ALSO
  33.       pcomm(1), waitfor(1),    modem_break(1),    Pcomm Reference    Manual
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.      Page 1                        (printed 12/31/89)
  64.  
  65.  
  66.  
  67.